<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'hyzkSel1.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
 <select name="zc1" id="zc1"  >
            <option>无</option>
            <option>管理</option>
            <c:forEach items="${zcList}" var="zc">
            <c:if test="${zc.zdqc=='管理'}">
                <option value="${zc.typename}" <c:if test="${zc1==zc.typename}"> selected</c:if>>&nbsp;&nbsp;|---${zc.typename}</option>
            </c:if>
            
           </c:forEach>
           <option>工人</option>
           <c:forEach items="${zcList}" var="zc">
            <c:if test="${zc.zdqc=='工人'}">
                <option value="${zc.typename}" <c:if test="${zc1==zc.typename}"> selected</c:if>>&nbsp;&nbsp;|---${zc.typename}</option>
            </c:if>
           </c:forEach>
           <option>专业技术人员</option>
           <c:forEach items="${zcList}" var="zc">
            <c:if test="${zc.zdqc=='专业技术人员'}">
                <option value="${zc.typename}" <c:if test="${zc1==zc.typename}"> selected</c:if>>&nbsp;&nbsp;|---${zc.typename}</option>
            </c:if>
           </c:forEach>
          </select>
  </body>
</html>
